{% block content %}

<ol class="breadcrumb">
  {%- block rootrellink %}
  <li><a href="{{ pathto(master_doc) }}">{{ shorttitle }}</a></li>
  {%- endblock %}
  <li id="Version-root"></li>
  {%- for parent in parents %}
  <li><a href="{{ parent.link | e }}" {% if loop.last %}{{ accesskey('U') }}{% endif %}>
    {{ parent.title }}
    </a>
  </li>
  {%- endfor %}
  <li><a href="">
    {{ title }}
  </a></li>
</ol>

<div class="content-left-wrap col-md-{% if pagename != 'search' %}9{% else %}12{% endif%}">
  <div id="primary" class="content-area">
    <main itemscope="" itemtype="http://schema.org/WebPageElement" itemprop="mainContentOfPage" id="main"
          class="site-main">
      <article id="documentation" class="type-post status-publish format-standard hentry category-non-classe">
        <header class="entry-header">
          <h1 class="entry-title" itemprop="headline">{{ title }}</h1>
        </header>
        <div class="entry-content" itemprop="text">
          {% if pagename == 'search' %}
          {% block body %}{% endblock %}
          {% else %}
          {{ body | regex_replace('<h1>.*</h1>', '') }}
          {% endif %}
        </div>
      </article>
    </main>
  </div>
</div>

{% if pagename != 'search' %}
<div class="sidebar-wrap col-md-3 content-left-wrap">
  <div id="secondary" class="widget-area" role="complementary" itemscope="itemscope"
       itemtype="http://schema.org/WPSideBar">
    <aside id="search-2" class="widget widget_search">
      <form role="form" method="get" action="{{ pathto('search') }}">
        <div class="input-group">
          <input type="text" class="form-control" placeholder="Search for..." name="q">
          <span class="input-group-btn">
            <button class="btn btn-default" type="submit">
              <span class="fa fa-search"></span>
            </button>
          </span>
        </div>
      </form>
      <a href="cheat-sheet.html" title="Cheat-Sheet" class="btn btn-secondary">
        Go to the Cheat-Sheet!
      </a>
    </aside>
    <aside class="widget">
      <h1 class="widget-title">Table of Content</h1>
      {{ toc }}
    </aside>
    {% if prev %}
    <aside class="widget">
      <h1 class="widget-title">Previous topic</h1>
      <ul>
        <li>
          <a href="{{ prev.link | e }}" title="{{ _('Previous Chapter: ') + prev.title | striptags }}">
            {{ prev.title | striptags | truncate(length=24, killwords=True) }}
          </a>
        </li>
      </ul>
    </aside>
    {% endif %}
    {% if next %}
    <aside class="widget">
      <h1 class="widget-title">Next topic</h1>
      <ul>
        <li>
          <a href="{{ next.link | e }}" title="{{ _('Next Chapter: ') + next.title | striptags }}">
            {{ next.title | striptags | truncate(length=24, killwords=True) }}
          </a>
        </li>
      </ul>
    </aside>
    {%- endif %}
    <aside class="widget">
      <h1 class="widget-title">Contribute</h1>
      <ul>
        <li>
          <a href="{{ theme_github }}{{ pagename }}.rst">Edit this page on Github</a>
        </li>
      </ul>
    </aside>
  </div>
</div>
{% endif %}

{% block footer %}
{% endblock %}

{% endblock %}
